package com.acme.bankapp.client.validator;

public class PortValidator implements Validator<Integer> {

    private static final int MIN_PORT = 0;
    private static final int MAX_PORT = 65536;

    @Override
    public boolean validate(Integer port) {
	return port < MAX_PORT && port >= MIN_PORT;
    }
    
}
